<?php use_stylesheet('bootstrap.min.css') ?>
<?php use_stylesheet('bootstrap-responsive.min.css') ?>
<?php use_javascript('bootstrap.min.js') ?>
<div class="box">
    <h2>Registro de Cambios</h2>
    <table class="table table-striped table-bordered">
        <tr class="info">
            <td style="width: 15%;">Fecha</td>
            <td style="width: 5%;">Revisión</td>
            <td style="width: 80%; text-align: center;">Descripción</td>
        </tr>
        <?php foreach(array_reverse($sf_data->getRaw('logs')) as $log) : ?>
        <tr>
            <td><?php echo date('d/m/Y H:i:s', strtotime($log['date']) - 10800) ?></td>
            <td><?php echo $log['version'] ?></td>
            <td><?php echo $log['comment'] ?></td>
        </tr>
        <?php endforeach ?>
    </table>
</div>
